<script>
import border from "@/views/formShortLink/border/index.vue";

export default {
  components: { border },
  props: ['qzAll', 'title', 'userInfo'],
  data() {
    return {
      infoIme: {
        jstx: require("../img/msg.svg"),
        wz: require("../img/point.svg"),
        gj: require("../img/guiji.svg"),
        dw: require("../img/dingwei.svg"),
        tz: require("../img/xiaoxi.svg"),
        xt: require("../img/xietong.svg"),
      },
    }
  },
  methods: {
    rtn(v, txt) {
      this.$emit("rtn", v, txt)
    }
  }
}
</script>

<template>
  <border :title="title" :minimize="true" @close="$emit('close')" w="300px" h="490px" x="19%" y="13%" @minimize="$emit('minimize')">
    <div class="list">
      <div class="row" v-for="item in qzAll">
        <div class="item">
          <i class="el-icon-s-custom" />
          <span style="margin-left: 10px">{{ item.realName }}</span>
        </div>
<!--        <i class="el-icon-close del" style="cursor:pointer;" />-->
      </div>
      <div class="lsbottomDiv">
        <div class="msg">勾选添加或取消</div>
        <div class="btn">
          <el-image title="即时通信" class="imgbtn" :src="infoIme.jstx" @click="rtn('msgDiv',qzAll)" />
          <el-image title="位置" class="imgbtn" :src="infoIme.wz" @click="rtn('wz', qzAll)" />
<!--          <el-image title="轨迹" class="imgbtn" :src="infoIme.gj" @click="rtn('traje', qzAll)" />-->
<!--          <el-image title="定位" class="imgbtn" :src="infoIme.dw" @click="rtn('dw')" />-->
<!--          <el-image title="通知下发" class="imgbtn" :src="infoIme.tz" @click="rtn('notice')" />-->
          <el-image title="任务协同" class="imgbtn" :src="infoIme.xt" @click="rtn('collagroup',qzAll)" />
        </div>
      </div>
    </div>
  </border>

</template>

<style scoped lang="scss">
.list {
  display: flex;
  padding: 10px 0 10px 10px;
  flex-direction: column;
  width: 100%;
  height: calc(100% - 85px);
  overflow: auto;

  .row {
    display: flex;
    flex-direction: row;
    border: 1px dotted #E4E7ED;
    padding: 10px;
    align-items: center;
    justify-content: space-between;
    margin: 2.5px 0;

    .item {
      display: flex;
      flex-direction: row;
      align-items: center;

      i {
        font-size: 18px;
      }
    }
  }


}

.lsbottomDiv {
  position: absolute;
  bottom: 0;
  left: 0;
  width: calc(100% - 0px);
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;

  .msg {
    display: flex;
    flex-direction: row;
    //justify-content: center;

    align-items: center;
    background-color: #FFFDF0;
    text-align: left;
    padding: 5px 0;
    padding-left: 10px;
    cursor: pointer;
    color: #FAA658;
    border: 1px solid #FAA658;
  }

  .btn {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    padding: 0 10px;
  }

  .imgbtn {
    width: 50px;
    height: 50px;
    cursor: pointer;
  }
}
</style>
